package com.linkcard.list.manager;

import java.util.List;

import com.linkcard.commen.tools.Page;
import com.linkcard.list.model.Business;
import com.linkcard.list.persistence.BusinessDao;

public class BusinessManagerImpl implements BusinessManager {

	private BusinessDao businessDao=null;
	//添加商家
	public boolean addBusiness(Business business) {
		return this.businessDao.addBusiness(business);
	}
	public BusinessDao getBusinessDao() {
		return businessDao;
	}
	public void setBusinessDao(BusinessDao businessDao) {
		this.businessDao = businessDao;
	}
	//获得商家列表
	public List businessList(Page pageObj, String searchStr) {
		return this.businessDao.businessList( pageObj,  searchStr);
	}
	//查找商家
	public Business findBusiness(Integer id) {
		return this.businessDao.findBusiness(id);
	}
	//删除商家　
	public boolean deleteBusiness(String ids) {
		return this.businessDao.deleteBusiness(ids);
	}
	//修改商家
	public boolean modifyBusiness(Business business) {
		return this.businessDao.modifyBusiness(business);
	}
	//获得推荐商家
	public List businessListRecommend(Page pageObj,int recommend) {
		return this.businessDao.businessListRecommend(pageObj,recommend);
	}
	//获得分店商家
	public List branchBusinessList(String pname) {
		return this.businessDao.branchBusinessList(pname);
	}

}
